package com.ruoyi.dj.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
import java.util.Date;
import java.util.List;

/**
 * 融合通信点检对象 rhtxdj
 *
 * @author ruoyi
 * @date 2024-04-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Rhtxdj extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long rhtxdjId;
    /** 用户id */
    @Excel(name = "用户id")
    private Long sysUserId;
    /** 派出所id */
    @NotNull(message = "部门不能为空")
    @Excel(name = "部门")
    private Long deptId;
    @Excel(name = "被抽点人姓名")
    private String name;
    @Excel(name = "字典结果")
    private Long dictCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @NotNull(message = "日期不能为空")
    @Past(message = "日期必须在过去")
    private Date lrTime;
    @Excel(name = "抽点单位")
    private String cddw;
    @NotNull(message = "表格不能为空")
    @Excel(name = "表格")
    private Long tableId;
    @NotNull(message = "点检人不能为空")
    private Long djr;//点检人
    private String jgms;//点检
    private String wgsj;//违规时间
    private SysUser user;//点检人
    private String mj;//点检人
    private List<SysDept> dept;//部门
    private SysDictData sdd;//选择的值
    private String cddwV_list_class;
    private String cddwV_dict_label;
}